#ifndef __OLED_H__
#define __OLED_H__

#include "stm32f1xx_hal.h"
#include "codetab.h"	//字库文件
//#include "oled.c"		//声明
#include "i2c.h"
#include "math.h"

extern uint8_t oled_GPUImage[128][64];

void oled_cmd(uint8_t cmd);
void oled_data(uint8_t data);
void oled_init(void);
void oled_cls(void);
void oled_on(void);
void oled_off(void);
void OLED_Set_Pos(unsigned char x, unsigned char y);
void oled_show(uint8_t x,uint8_t y,uint8_t *chr,uint8_t d_time);
void oled_num(unsigned char x,unsigned char y,unsigned int ch);
 void oled_mnum(unsigned char x,unsigned char y,long long int sz);
void oled_scroll(void);
unsigned int qiuwei(unsigned long int num);
void oled_paint(uint8_t x,uint8_t y,uint8_t st);
void oled_draw_point(uint8_t x,uint8_t y);


void oled_blit_num(uint8_t x,uint8_t y,float num,uint8_t len);
void oled_blit_str(uint8_t x,uint8_t y,uint8_t *chr);//128*64
void pic_blit(int x,int y,int length,int height,uint8_t* arr);
void oled_clear(void);
void oled_update(void);
void oled_datas(uint8_t * datas,uint16_t length);

#endif
